{
  "properties" : { },
  "id" : "dcc4bf82eb104248938d16eac89479a0",
  "script" : null,
  "groupId" : "97f65e4b68e1427f857047c67d7e3f42",
  "name" : "删除告警对象",
  "createTime" : 1727070897366,
  "updateTime" : 1724898911499,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "remove",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\n    \"ids\": \"7050,7049,7048\"\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": {}\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  }
}
================================
ids = body.ids
idList = ids.split(",")
// 批量删除，返回删除条数
return db.update("""
        delete from alarm_target where id in 
        <foreach collection="idList" open="(" separator="," close=")" item="item">
            #{item}
        </foreach>
    """)